home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 76 / MF_UK_76_1.iso / Education Feature / MicroWorlds 2.03 Try Me / MicroWorlds 2.03 Try Me.rsrc / TEXT_598_key?.txt < prev    next >
Encoding:
Text File  |  1998-05-08  |  436 b   |  18 lines

  1. key? 
  2.  
  3. Reports true if a key is being pressed on the keyboard. You must click on the background of the page (outside of a text box, the Command Center, or Procedures page) for key? to work. Use readchar to reset key? to false.
  4.  
  5. Example: 
  6.  
  7. First run the instruction and press a key after MicroWorlds starts displaying the word false.
  8.  
  9. repeat 10 [show key? wait 5] 
  10.  
  11. Click on the page.
  12.  
  13. false 
  14. false 
  15. true       You pressed a key.
  16. true 
  17. ...
  18.